package com.wetao.lib_common.bean.response;

import com.wetao.lib_common.base.Base2Response;
import com.wetao.lib_common.utils.JsonUtils;

import java.io.Serializable;

/**
 * author: zhouyh
 * created on: 3/8/21 10:31 AM
 * description:
 */
public class StudentInfo extends Base2Response implements Serializable {


    /**
     * data : {"name":null,"studentId":null}
     */

    private Data data;

    public static StudentInfo objectFromData(String str) {

        return (JsonUtils.getmGson()).fromJson(str, StudentInfo.class);
    }


    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data implements Serializable {
        /**
         * name : null
         * studentId : null
         */

        private String name;
        private String studentId;
        private String token;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getStudentId() {
            return studentId;
        }

        public void setStudentId(String studentId) {
            this.studentId = studentId;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public static Data objectFromData(String str) {

            return (JsonUtils.getmGson()).fromJson(str, Data.class);
        }
    }
}
